﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BBPA.Admin.SYS.Store
{
    public partial class Info : InfoPage
    {
        BLL.Store bll = new BLL.Store();
        protected Model.Store model = new Model.Store();
        //
        BLL.Pic bllPic = new BLL.Pic();
        protected Model.Pic modelPic = new Model.Pic();
        protected void Page_Load(object sender, EventArgs e) { }
        /// <summary>
        /// 初始化本页Model
        /// </summary>
        public override void Page_Load_DefaultModel() {
            model = bll.GetModelList("id=" + Master.id)[0];
            if (DataTypePlus.requestInt(model.PicID) > 0) modelPic = bllPic.GetModel(DataTypePlus.requestInt(model.PicID));
        }
        /// <summary>
        /// 初始化表单
        /// </summary>
        public override void Form_Default()
        {
            if (!Security.InUserType(new List<EnumHelper.UserType>() { EnumHelper.UserType.Administrator, EnumHelper.UserType.Accountant })) tr_Money.Visible = false;
            if (DataTypePlus.requestInt(model.PicID) == 0) tr_Pic.Visible = false;
           
        }
        /// <summary>
        /// 绑定表单数据【修改时用】
        /// </summary>
        public override void Form_Bind()
        {
           
        }

    }
}